package com.dmxh.controller;

import com.dmxh.pojo.TbAdmin;
import com.dmxh.result.Result;
import com.dmxh.service.AdminService;
import com.dmxh.vo.AdminVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    @PostMapping("/queryByName")
    public TbAdmin queryByName(@RequestBody String username) {
        return adminService.queryByName(username);
    }

}
